package com.wzl.producer;

import lombok.extern.slf4j.Slf4j;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

/**
 * 消息队列生产者启动类
 *
 * @author weizhongli
 * @since 2022-09-05 17:53
 */
@Slf4j
@SpringBootApplication
@MapperScan({
        "com.wzl.producer.mapper"
})
public class MqProducerApplication {

    public static void main(String[] args) {
        try{
            SpringApplication.run(MqProducerApplication.class, args);
            log.info("************消息队列生产者工程Mq-Producer启动成功************");
        }catch (Exception e){
            log.error("", e);
            log.error("************消息队列生产者工程Mq-Producer启动失败************");
        }
    }

}